{if $params.action=="index"}

	{if $ModuleInfo && $Acl.mvc.control.resource.add}
		<p><a href="/control/resource/add/moduleid/{$ModuleInfo.moduleid}/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{_('Добавить')} {$ModuleInfo.singlename}</span></a></p>
	{/if}
	
	{$ResourceDataTable}

{/if}

{if $params.action=="add" || $params.action=="edit"}
	{$Form}
{/if}